﻿using streamsearcher;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using FileSearcher;

namespace Listing_02
{
    class Program
    {
        static void Main(string[] args)
        {
            var patternBytes = new byte[]
           {
	// Offset 0x0000008A to 0x00000097,匹配内容为aa bb cc xx dd
	0x61, 0x61, 0x20, 0x62, 0x62, 0x20, 0x63, 0x63, 0x20, 0x78, 0x78, 0x20,
    0x64, 0x64
};


            var SensitiveSearcher = new fileSearcher(patternBytes);
            var files = new[] { "input.bin" };
            foreach (var fname in files)
            {
                SensitiveSearcher.SearchInFile(fname);
            }
        }
    }
}